//
//  BuyListCell.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/19.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "BuyListCell.h"

@interface BuyListCell()

@property (weak, nonatomic) IBOutlet UILabel *buyTimeLab;
@property (weak, nonatomic) IBOutlet UILabel *buyNameLab;
@property (weak, nonatomic) IBOutlet UILabel *buyTypeLab;
@property (weak, nonatomic) IBOutlet UILabel *buyPriceLab;
@property (weak, nonatomic) IBOutlet UILabel *payTypeLab;

@end
@implementation BuyListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(ChargeListModel *)model
{
    _model = model;
    self.buyTimeLab.text = [NSString stringWithFormat:@"消费时间:%@",model.createDate];
    self.buyNameLab.text = [NSString stringWithFormat:@"商品名称:%@",model.productName];
    self.buyTypeLab.text = [NSString stringWithFormat:@"商品类型:%@",model.productType];
    self.buyPriceLab.text = [NSString stringWithFormat:@"消费金额:%.2f",model.amount];
    self.payTypeLab.text = [NSString stringWithFormat:@"支付方式:%@",model.tradeChannel];
}

@end
